package ckf.man.practice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName base_data
 */
@TableName(value ="base_data")
@Data
public class BaseData implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer baseDataId;

    /**
     * 
     */
    private Integer equipmentId;

    /**
     * 
     */
    private Integer lateralLineId;

    /**
     * 
     */
    private Integer schemeNewId;

    /**
     * 
     */
    private Integer schemeId;

    /**
     * 
     */
    private String schemeOrigin;

    /**
     * 
     */
    private String startConstraint;

    /**
     * 
     */
    private String remark;

    /**
     * 
     */
    private String qualityControl;

    /**
     * 
     */
    private String operationAdvice;

    /**
     * 
     */
    private String riskAlert;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Integer canDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseData other = (BaseData) that;
        return (this.getBaseDataId() == null ? other.getBaseDataId() == null : this.getBaseDataId().equals(other.getBaseDataId()))
            && (this.getEquipmentId() == null ? other.getEquipmentId() == null : this.getEquipmentId().equals(other.getEquipmentId()))
            && (this.getLateralLineId() == null ? other.getLateralLineId() == null : this.getLateralLineId().equals(other.getLateralLineId()))
            && (this.getSchemeNewId() == null ? other.getSchemeNewId() == null : this.getSchemeNewId().equals(other.getSchemeNewId()))
            && (this.getSchemeId() == null ? other.getSchemeId() == null : this.getSchemeId().equals(other.getSchemeId()))
            && (this.getSchemeOrigin() == null ? other.getSchemeOrigin() == null : this.getSchemeOrigin().equals(other.getSchemeOrigin()))
            && (this.getStartConstraint() == null ? other.getStartConstraint() == null : this.getStartConstraint().equals(other.getStartConstraint()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getQualityControl() == null ? other.getQualityControl() == null : this.getQualityControl().equals(other.getQualityControl()))
            && (this.getOperationAdvice() == null ? other.getOperationAdvice() == null : this.getOperationAdvice().equals(other.getOperationAdvice()))
            && (this.getRiskAlert() == null ? other.getRiskAlert() == null : this.getRiskAlert().equals(other.getRiskAlert()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCanDelete() == null ? other.getCanDelete() == null : this.getCanDelete().equals(other.getCanDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBaseDataId() == null) ? 0 : getBaseDataId().hashCode());
        result = prime * result + ((getEquipmentId() == null) ? 0 : getEquipmentId().hashCode());
        result = prime * result + ((getLateralLineId() == null) ? 0 : getLateralLineId().hashCode());
        result = prime * result + ((getSchemeNewId() == null) ? 0 : getSchemeNewId().hashCode());
        result = prime * result + ((getSchemeId() == null) ? 0 : getSchemeId().hashCode());
        result = prime * result + ((getSchemeOrigin() == null) ? 0 : getSchemeOrigin().hashCode());
        result = prime * result + ((getStartConstraint() == null) ? 0 : getStartConstraint().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getQualityControl() == null) ? 0 : getQualityControl().hashCode());
        result = prime * result + ((getOperationAdvice() == null) ? 0 : getOperationAdvice().hashCode());
        result = prime * result + ((getRiskAlert() == null) ? 0 : getRiskAlert().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCanDelete() == null) ? 0 : getCanDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", baseDataId=").append(baseDataId);
        sb.append(", equipmentId=").append(equipmentId);
        sb.append(", lateralLineId=").append(lateralLineId);
        sb.append(", schemeNewId=").append(schemeNewId);
        sb.append(", schemeId=").append(schemeId);
        sb.append(", schemeOrigin=").append(schemeOrigin);
        sb.append(", startConstraint=").append(startConstraint);
        sb.append(", remark=").append(remark);
        sb.append(", qualityControl=").append(qualityControl);
        sb.append(", operationAdvice=").append(operationAdvice);
        sb.append(", riskAlert=").append(riskAlert);
        sb.append(", createTime=").append(createTime);
        sb.append(", canDelete=").append(canDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}